package com.zpark.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhangbing
 * @date
 * @description TODO   规范: 1.类名首字母大写  属性名首字母小写  get属性名首字母大写  set属性名首字母大写
 */

@TableName("equipment")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Equipment {

    @TableId(value = "id",type =IdType.AUTO )//字段不一致时，通过value值指定表中主键字段名称
    private int id;

   // @TableField("e_name") //不存在
    private String name;
    private String model;
    private String status;


}
